package cn.cpy.sms.login.dao.persist.repository.impl;

import cn.cpy.sms.login.dao.persist.mapper.UserMapper;
import cn.cpy.sms.login.dao.persist.repository.IPassportRepository;
import cn.cpy.sms.login.pojo.entity.User;
import cn.cpy.sms.login.pojo.vo.UserLoginVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

@Repository
public class PassportRepositoryImpl implements IPassportRepository {
    @Autowired
    UserMapper userMapper;

    @Override
    public int insertUser(User user) {
        return userMapper.insert(user);
    }

    @Override
    public UserLoginVO getUserByMobile(String mobile) {
        return userMapper.getUserByMobile(mobile);
    }
}
